package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Strategy;
import cn.wolfcode.trip.base.domain.StrategyContent;
import cn.wolfcode.trip.base.domain.TravelCommend;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.StrategyQuery;
import cn.wolfcode.trip.base.query.TravelCommendQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IStrategyService {
    /**
     * 分页查询
     * @param qo
     * @return
     */
    PageInfo query(QueryObject qo);


    void saveOrUpdate(Strategy strategy);


    List<Strategy> list();

    StrategyContent getContentByStrategyDetailId(Long detailId);

    /**\
     *根据地区查询所有的攻略
     * @param qo
     * @return
     */
    List<Strategy> getStrategies(StrategyQuery qo);

    Strategy get(Long strategyId);

    Object selectStrategysByuserId(StrategyQuery qo, Long id);

    Strategy getStrategy(Long strategyId);
}
